home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1760 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  2KB  |  69 lines

  1. on(release){
  2.    _root.stopdragall();
  3.    if(_root.poz == "b")
  4.    {
  5.       _root.pepa.gotoAndPlay("bx");
  6.    }
  7.    else if(_root.poz == "d")
  8.    {
  9.       _root.pepa.gotoAndPlay("dx");
  10.    }
  11.    else if(_root.poz == "e")
  12.    {
  13.       _root.pepa.gotoAndPlay("ex");
  14.    }
  15.    else if(_root.poz == "f")
  16.    {
  17.       _root.pepa.gotoAndPlay("fx");
  18.    }
  19.    else if(_root.poz == "x")
  20.    {
  21.       if(_root.turistastate < 2)
  22.       {
  23.          if(_root.izvuk == 1)
  24.          {
  25.             _root.loadzvuk.gotoAndPlay("turistatalk_kos0");
  26.          }
  27.          else
  28.          {
  29.             _root.turistatalk.gotoAndPlay("kos0");
  30.          }
  31.       }
  32.       else if(_root.turistastate == 2)
  33.       {
  34.          _root.turistastate = 3;
  35.          if(_root.izvuk == 1)
  36.          {
  37.             _root.loadzvuk.gotoAndPlay("turistatalk_kos1");
  38.          }
  39.          else
  40.          {
  41.             _root.turistatalk.gotoAndPlay("kos1");
  42.          }
  43.       }
  44.       else if(_root.turistastate == 3)
  45.       {
  46.          _root.turistastate = 4;
  47.          if(_root.izvuk == 1)
  48.          {
  49.             _root.loadzvuk.gotoAndPlay("turistatalk_kos2");
  50.          }
  51.          else
  52.          {
  53.             _root.turistatalk.gotoAndPlay("kos2");
  54.          }
  55.       }
  56.       else if(_root.turistastate == 4)
  57.       {
  58.          if(_root.izvuk == 1)
  59.          {
  60.             _root.loadzvuk.gotoAndPlay("turistatalk_kos3");
  61.          }
  62.          else
  63.          {
  64.             _root.turistatalk.gotoAndPlay("kos3");
  65.          }
  66.       }
  67.    }
  68. }
  69.